/*
 * @Description: 
 * @Author: rendc
 * @Date: 2024-09-09 16:29:15
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-09 16:30:15
 */
public class Account{
    //成员变量
    private String id;//卡号
    private double balance;//余额
    public void setId(String id){
        this.id=id;
    }
    public String getId(){
        return id;
    }
    //构造方法-无参-无参构造器
    public Account(){
        System.out.println("调用了Account的无参构造器");
        
    }
    //构造方法-有参-有参构造器
    public Account(String id,String type,double balance){
        System.out.println("调用了Account的有参构造器");
        this.id=id;
        this.balance=balance;
    }
    public void setBannlance(double balance){
        this.balance=balance;
    }

    public double getBalance(){
        return balance;
    }
    
}